home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / retroland.swf / scripts / DefineSprite_167 / frame_1 / PlaceObject2_95_1358 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2007-10-01  |  566b  |  22 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.hero.hitTest(this.enemy3sees.down))
  3.    {
  4.       _root.heroOVER._x = _root.hero._x;
  5.       _root.heroOVER._y = _root.hero._y;
  6.       _root.heroOVER.gotoAndPlay(2);
  7.       _level0.keys = 1;
  8.       _level0.lives -= 1;
  9.       _root.hero._y = -300;
  10.    }
  11.    else if(_root.hero.hitTest(this.enemy3sees.knock))
  12.    {
  13.       this.stop();
  14.       this.enemy3sees.gotoAndPlay(31);
  15.    }
  16.    else if(_root.stage._x == _level0.mapX && _root.hero._y == 50)
  17.    {
  18.       this.enemy3sees.gotoAndPlay(2);
  19.       this.gotoAndPlay(2);
  20.    }
  21. }
  22.